home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Palettes / ColorBrowser / ColorBrowser.h < prev    next >
Text File  |  1995-06-12  |  2KB  |  46 lines

  1. //---------------------------------------------------------------------------------------------------------
  2. //
  3. //    ColorBrowser
  4. //
  5. //    Inherits From:        NXBrowser
  6. //
  7. //    Declared In:        ColorBrowser.h
  8. //
  9. //    Class Description
  10. //
  11. //        ColorBrowser is an NXBrowser subclass that uses a
  12. //        ColorBrowserCell as its Cell class.  The ColorBrowserCell
  13. //        allows access to the color attribute of a cell's Text object. 
  14. //        Methods have been added to the ColorBrowser class to
  15. //        support this (A ColorBrowserCell may be used as the Cell
  16. //        class for an NXBrowser instance as well, however, not with 
  17. //        benefit of the 'color friendly' methods added here).  
  18. //
  19. //
  20. //    Disclaimer
  21. //
  22. //        You may freely copy, distribute and reuse this software and its
  23. //        associated documentation. I disclaim any warranty of any kind, 
  24. //        expressed or implied, as to its fitness for any particular use.
  25. //
  26. //---------------------------------------------------------------------------------------------------------
  27. #import <appkit/appkit.h>
  28.  
  29. @interface ColorBrowser : NXBrowser
  30.  
  31. {
  32. }
  33.  
  34. //---------------------------------------------------------------------------------------------------------
  35. //     Setting Cell Color
  36. //---------------------------------------------------------------------------------------------------------
  37. - setTextColor:(NXColor)aColor forCellWithStringValue:(const char*)aString inColumn:(int) aColumn;
  38. - setTextColor:(NXColor)aColor forCellWithIntValue: (int) anInt  inColumn: (int) aColumn;
  39. - setTextColor:(NXColor)aColor forCellWithFloatValue: (float) aFloat  inColumn: (int) aColumn;
  40. - setTextColor:(NXColor)aColor forCellWithDoubleValue: (double)aDouble inColumn: (int) aColumn;
  41. - setTextColor:(NXColor)aColor forCellWithTag: (int) aTag  inColumn: (int) aColumn;
  42. - setTextColor:(NXColor)aColor forCellInRow: (int) aRow  inColumn: (int) aColumn;
  43. - setTextColor:(NXColor)aColor inColumn: (int) aColumn;
  44. - setTextColorOfSelectedCells:(NXColor)aColor;
  45.  
  46. @end